package com.itxuhang.spring.handler;

public class IntegerTypeHandler implements TypeHandler{
    @Override
    public boolean isTargetHandler(Class handler) {
        return Integer.class == handler;
    }

    @Override
    public Object handle(String stringValue) {
        return Integer.parseInt(stringValue);
    }
}
